home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / shwdlg16.hqx / ShowDialog XCMD 1.6 / card_3153.txt < prev    next >
Text File  |  1989-05-10  |  25KB  |  543 lines

  1. -- card: 3153 from stack: in.6
  2. -- bmap block id: 7478
  3. -- flags: 0000
  4. -- background id: 3411
  5. -- name: ResEdit
  6. ----- HyperTalk script -----
  7. on turnOn buttonNo
  8.   lock screen
  9.   hide cd pict
  10.   hide bg fld "theResult"
  11.   repeat with counter = 1 to 4
  12.     if buttonNo = counter then
  13.       set the hilite of cd btn counter to TRUE
  14.       show bg fld counter
  15.     else
  16.       set the hilite of cd btn counter to FALSE
  17.       hide bg fld counter
  18.     end if
  19.   end repeat
  20.   set scroll of bg fld buttonNo to 0
  21.   show bg btn "Close Information"
  22.   unlock screen with visual effect dissolve
  23. end turnOn
  24.  
  25. on closeall
  26.   set cursor to watch
  27.   lock screen
  28.   repeat with x = 1 to 4
  29.     hide bg fld x
  30.     set hilite of cd btn x to FALSE
  31.   end repeat
  32.   hide bg btn "Close Information"
  33.   show cd pict
  34.   show bg fld "theResult"
  35.   unlock screen with visual effect dissolve
  36. end closeall
  37.  
  38. on closecard
  39.   closeall
  40. end closecard
  41.  
  42. on printIt
  43.   put bg fld 1 & return & bg fld 2 & return & bg fld 3 & return & bg fld 4 into container
  44.   put bg fld "Title" into prompt
  45.   PrintDoc prompt,container,prompt,times,12
  46. end printIt
  47.  
  48.  
  49.  
  50. -- part 1 (button)
  51. -- low flags: 00
  52. -- high flags: A004
  53. -- rect: left=17 top=90 right=112 bottom=194
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 1
  57. -- font id: 0
  58. -- text size: 12
  59. -- style flags: 0
  60. -- line height: 16
  61. -- part name: What is ResEdit?
  62. ----- HyperTalk script -----
  63. on mouseUp
  64.   if the visible of bg fld (the number of me) then
  65.     closeall
  66.   else
  67.     put the number of me into displayinfo
  68.     turnOn displayinfo
  69.   end if
  70. end mouseUp
  71.  
  72.  
  73.  
  74. -- part 2 (button)
  75. -- low flags: 00
  76. -- high flags: A004
  77. -- rect: left=17 top=120 right=142 bottom=194
  78. -- title width / last selected line: 0
  79. -- icon id / first selected line: 0 / 0
  80. -- text alignment: 1
  81. -- font id: 0
  82. -- text size: 12
  83. -- style flags: 0
  84. -- line height: 16
  85. -- part name: Using ResEdit
  86. ----- HyperTalk script -----
  87. on mouseUp
  88.   if the visible of bg fld (the number of me) then
  89.     closeall
  90.   else
  91.     put the number of me into displayinfo
  92.     turnOn displayinfo
  93.   end if
  94. end mouseUp
  95.  
  96.  
  97.  
  98. -- part 3 (button)
  99. -- low flags: 00
  100. -- high flags: A004
  101. -- rect: left=17 top=150 right=172 bottom=194
  102. -- title width / last selected line: 0
  103. -- icon id / first selected line: 0 / 0
  104. -- text alignment: 1
  105. -- font id: 0
  106. -- text size: 12
  107. -- style flags: 0
  108. -- line height: 16
  109. -- part name: Warning about ResEdit!
  110. ----- HyperTalk script -----
  111. on mouseUp
  112.   if the visible of bg fld (the number of me) then
  113.     closeall
  114.   else
  115.     put the number of me into displayinfo
  116.     turnOn displayinfo
  117.   end if
  118. end mouseUp
  119.  
  120.  
  121.  
  122. -- part 4 (button)
  123. -- low flags: 00
  124. -- high flags: A004
  125. -- rect: left=17 top=180 right=202 bottom=194
  126. -- title width / last selected line: 0
  127. -- icon id / first selected line: 0 / 0
  128. -- text alignment: 1
  129. -- font id: 0
  130. -- text size: 12
  131. -- style flags: 0
  132. -- line height: 16
  133. -- part name: Obtaining ResEdit
  134. ----- HyperTalk script -----
  135. on mouseUp
  136.   if the visible of bg fld (the number of me) then
  137.     closeall
  138.   else
  139.     put the number of me into displayinfo
  140.     turnOn displayinfo
  141.   end if
  142. end mouseUp
  143.  
  144.  
  145.  
  146. -- part 5 (button)
  147. -- low flags: 00
  148. -- high flags: 0000
  149. -- rect: left=11 top=4 right=65 bottom=78
  150. -- title width / last selected line: 0
  151. -- icon id / first selected line: 20179 / 20179
  152. -- text alignment: 1
  153. -- font id: 0
  154. -- text size: 12
  155. -- style flags: 0
  156. -- line height: 16
  157. -- part name: ResEdit
  158.  
  159.  
  160. -- part contents for background part 21
  161. ----- text -----
  162. Using ResEdit
  163.  
  164. -- part contents for background part 15
  165. ----- text -----
  166. ResEdit is a stand-alone application for editing resources.
  167.  
  168. ResEdit is an interactive, graphically based application for manipulating the various resources in a Macintosh application. It lets you create and edit all standard resource types except 'CODE', and copy and paste all resource types (including 'CODE'). ResEdit actually includes a number of different resource editors: There is a general resource editor, for editing any resource in hex and ASCII format, and there are several individual resource editors for specific types of resources. You can also create your own resource editors to use with ResEdit.
  169.  
  170. USES OF RESEDIT
  171.  
  172. ResEdit is especially useful for creating and changing graphic resources such as dialog boxes and icons. For example, you can use ResEdit to put together a quick prototype of a user interface and try out different formats and presentations of resources. Anyone can quickly learn to use ResEdit for translating resources into a foreign language without having to recompile the program.  You can use ResEdit to modify a 
  173. programΓÇÖs resources at any stage in the process of program development.
  174.  
  175.  
  176.  
  177. -- part contents for background part 17
  178. ----- text -----
  179. USING RESEDIT
  180.  
  181.         ••••••••••••••••••••••••
  182. See the "bottom" of this field for instructions on creating dialogs for use with ShowDialog with ResEdit.
  183. ┬á┬á┬á┬á┬áΓÇó Click┬áhere┬áto┬ágo┬ádirectly┬áthere ΓÇó
  184.         ••••••••••••••••••••••••
  185.  
  186. From the Finder, you can just select and open the ResEdit icon. ResEdit displays a window that lists the files and folders for each disk volume currently mounted.
  187.  
  188. WORKING WITH FILES
  189.  
  190. To list the resource types in a file, select and open the filename from the list. (You can select a name by clicking on it or by typing one or more characters of the name.)
  191. When a directory window is the active window, the File menu commands act as follows:
  192.  
  193. ΓÇó  New      
  194.     Creates a new file.
  195.  
  196. ΓÇó  Open     
  197.     Opens the selected file or folder (this is the same as    
  198.     double-clicking on the name).
  199.  
  200. ΓÇó  Close       
  201.     Closes the volume window (this is the same as 
  202.     clicking the close box). If itΓÇÖs a 3.5-inch disk, the 
  203.     disk is ejected.
  204.  
  205. ΓÇó  Get Info  
  206.     Displays file information and allows you to change 
  207.     it. 
  208.  
  209. ΓÇó  Transfer      
  210.     Allows you to transfer to an application other than 
  211.     the application that launched ResEdit. (This is an 
  212.     alternative to the Quit command.)
  213.  
  214. ΓÇó  Quit          
  215.     Quits from ResEdit and returns to the Finder.
  216.  
  217.  
  218. ResEdit will recognize a new disk when itΓÇÖs inserted, and handle multiple drives. Note that you can also use ResEdit to copy or delete files:
  219.  
  220. ΓÇó  Deleting Files
  221.     To delete a file, select the file and choose Clear from  
  222.     the Edit menu.
  223.  
  224. ΓÇó  Copying Files
  225.     To copy a resource file, you must select all of its 
  226.     resources and copy them. 
  227. ΓÇó  Pasting Files
  228.     Then paste them into a new file. (File attributes are 
  229.     not automatically copied by this operationΓÇöyou 
  230.     must set them via the Get Info command.)
  231.     NOTE!!  ResEdit cannot copy a data fork.
  232.  
  233. WORKING WITHIN A FILE
  234.  
  235. When you open a file, a window displays a list of all the resource types in that file.  While this window is the active window, you can create new resources, copy or delete existing resources, and paste resources from other files.
  236.  
  237. NOTE!   The resources are displayed by a resource picker. The general resource picker displays the resources by type, name, and ID number; there are also special resource pickers for some resource types 
  238. (for example, the 'ICON) resource picker displays the icons graphically).
  239.  
  240. A RESEDIT FILE WINDOW
  241.  
  242. When a file window is the active window, the File menu commands have the following effects:
  243.  
  244. ΓÇó  New           
  245.     Creates a new resource in the open file.
  246.  
  247. ΓÇó  Open          
  248.     Opens a window displaying all resources of the 
  249.     resource type selected. (Select the resource type by 
  250.     clicking on it or by typing its first character.)
  251.  
  252. NOTE!   If you hold down the Option key while opening a resource type, the resource window will open with the general resource picker.
  253.  
  254. ΓÇó  Open General  
  255.     Opens the general resource picker.
  256.  
  257. ΓÇó  Close         
  258.     Closes the file window and asks if you want to save 
  259.     the changes you have made.
  260.         
  261. NOTE!  If youΓÇÖve made changes, you should not reboot before closing.
  262.  
  263. ΓÇó  Revert        
  264.     Changes the resource file back to the version that 
  265.     was last saved to disk.
  266.  
  267. ΓÇó  Quit          
  268.     Quits from ResEdit.
  269.  
  270. When a file window is the active window, the Edit menu commands have the following effects:
  271.  
  272. ΓÇó  Cut           
  273.     Removes all resources of the resource types  
  274.     selected, placing them in the ResEdit scrap.
  275.  
  276. ΓÇó  Copy          
  277.     Copies all resources of the resource types selected 
  278.     into the ResEdit scrap
  279.  
  280. ΓÇó  Paste         
  281.     Copies the resources from the ResEdit scrap into 
  282.     the file windowΓÇÖs resource type list.
  283.  
  284. ΓÇó  Clear         
  285.     Removes all resources of the resource type selected, 
  286.     without placing them in the ResEdit scrap.
  287.  
  288. ΓÇó  Duplicate     
  289.     Creates duplicates of all resources of the resource 
  290.     types selected, and assigns a unique resource ID 
  291.     number to each new resource.
  292.  
  293. WORKING WITHIN A RESOURCE TYPE
  294.  
  295. Opening a resource type produces a window that lists each resource of that type in the file. This list will take different forms, depending on the particular resource picker; if you hold down the Option key during the open, the general resource picker is invoked.
  296.  
  297. A RESOURCE TYPE WINDOW
  298.  
  299. When a resource type window is the active window, the File menu commands have the following effects:
  300.  
  301. ΓÇó  New               
  302.     Creates a new resource and opens its editor.
  303.  
  304. ΓÇó  Open              
  305.     Opens the appropriate editor for the resource you 
  306.     selected.
  307.  
  308. ΓÇó  Open a            
  309.     Allows you to open an editor template of a different 
  310.     type.
  311.  
  312. ΓÇó  Open General      
  313.     Opens the general (hex) resource editor.
  314.  
  315. ΓÇó  Close             
  316.     Closes the resource type window.
  317.  
  318. ΓÇó  Revert            
  319.     Changes the file back to what it was before you 
  320.     opened the resource type window.
  321.  
  322. ΓÇó  Get Info          
  323.     Displays resource information and allows you to 
  324.     change it.
  325.                   
  326. A GET INFO WINDOW FOR ICN#'s
  327.  
  328. When a resource type window is the active window, the Edit menu commands have the following effects:
  329.  
  330. ΓÇó  Undo              
  331.     Undoes the most recent editing command. Undo may 
  332.     or may not be selectable, depending on the specific 
  333.     editor in use.
  334.  
  335. ΓÇó  Cut               
  336.     Removes the resources that are selected, placing 
  337.     them in the ResEdit scrap.
  338.  
  339. ΓÇó  Copy              
  340.     Copies all the resources that are selected into the 
  341.     ResEdit scrap.
  342.  
  343. ΓÇó  Paste             
  344.     Copies the resources from the ResEdit scrap into 
  345.     the resource type window.
  346.  
  347. ΓÇó  Clear             
  348.     Removes the resources that are selected, without 
  349.     placing them in the ResEdit scrap.
  350.  
  351. ΓÇó  Duplicate         
  352.     Creates a duplicate of the selected resources and 
  353.     assigns a unique resource ID number to each new 
  354.     resource.
  355.  
  356. EDITING INDIVIDUAL RESOURCES
  357.  
  358. To open an editor for a particular resource, either double-click on the resource or select it and choose Open from the File menu.  One or more auxiliary menus may appear, depending on the type of resource youΓÇÖre editing. Some editors, such as the 'DITL' editor, allow you to open additional editors for the elements within the resource. All the editors use File and Edit menus similar to those described above, but operate on individual resources or individual elements of a resource, and hence vary in their appearance and  function as explained below.
  359.  
  360. If you hold down the Option key while opening a resource, the general data editor is invoked. This editor allows you to edit the resource as hexadecimal or ASCII data. If you hold down the Shift and the Option keys while opening, ResEdit shows you a list of all editors and templates.
  361.  
  362. CAUTION
  363.  
  364. Individual editors may not be appropriate for all resource typesΓÇöinappropriate editors may cause system errors to occur.
  365.  
  366. The menus for some of the editors are discussed below. The use of the editors not discussed here should be apparent when you run them.
  367.  
  368. NOTE!  The general data editor will not edit resources larger than 16K bytes; however, you can move larger resources with the Cut, Copy, Paste, and Clear
  369. commands as described above.
  370.  
  371. 'CURS' (cursor) RESOURCES
  372.  
  373. For 'CURS' resources, the editor displays three images of the cursor.  You can manipulate all three images with the mouse.
  374.  
  375. EDITING 'CURS' RESOURCES
  376.  
  377. The Cursor menu contains the following commands:
  378.  
  379. ΓÇó  Try Cursor        
  380.     Lets you try out the cursor by having it become the 
  381.     cursor in use. (Restore Arrow restores the 
  382.     standard arrow cursor.)
  383.  
  384. ΓÇó  Data ΓÇô>Mask       
  385.     Copies the cursor image to the mask editing area.
  386.  
  387. ΓÇó 'DLOG' (dialog template) resources
  388.  
  389. For 'DLOG' resources, the editor displays a miniture image of the dialog in the editor window.  The dialog can be resized by clicking just within its border and dragging.
  390.  
  391. The 'DLOG' menu consists of a single item "Display as Text."  If this item is selected, the graphical display of the dialog is replaced with a "text" representation of it. It is here that you can specify a name that will appear in the dialog's title bar.  Here also you specify the procID of the dialog, which describes the window type of the dialog.  The visible and goAwayFlag checkboxes MUST BE UNCHECKED for use with ShowDialog XCMD.
  392. The itemsID contains a number matching the DITL resource containing the items of the dialog.  You can specify the size of the DLOG here too.
  393.  
  394. ΓÇó  'DITL' (dialog item list) resources
  395.  
  396. For 'DITL' resources, the editor displays an image of the item list as your program would display it in a dialog or alert box. When you select an item, a size box appears in the lower-right corner of its enclosing rectangle so that you can change the size of the rectangle. You can move an item by dragging it with the mouse.
  397.  
  398. Note that the DITL editor has a "grow" box in the lower right corner of its window.  Resizing the window with the "grow" box DOES NOT resize the resulting dialog window.  You must set the size of the dialog in the DLOG editor (see above).
  399.  
  400. If you open an item within the dialog box, the editor associated with the item is invoked; for an 'ICON', for example, the icon editor is invoked. If you hold down the Option key while opening, the general data editor is invoked.
  401.  
  402. The DITL menu contains the following commands:
  403.  
  404. ΓÇó  Bring to Front     
  405.     Allows you to change the order of items in the item 
  406.     list.  Bring to Front causes the selected item to 
  407.     become the last (highest numbered) item in the list. 
  408.     The actual number of the item is shown by the '
  409.     DITM' editor.
  410.  
  411. ΓÇó  Send to Back       
  412.     Like Bring to Front, except that it makes the 
  413.     selected item the first item in the listΓÇöthat is, item 
  414.     number 1.
  415.  
  416. ΓÇó  Grid               
  417.     Aligns the item on an invisible 8-pixel by 8-pixel 
  418.     grid.  If you change the item location while Grid is 
  419.     on, the location will be adjusted such that the upper-
  420.     left corner lies on the nearest grid point above and 
  421.     to the left of the location you gave it. If you change 
  422.     the size, it will be made a multiple of 8 pixels in 
  423.     both dimensions.
  424.  
  425. ΓÇó  Use RSRC Rect      
  426.     Restores the enclosing rectangle to the rectangle 
  427.     size stored in the underlying resource. Note that 
  428.     this works on 'ICON', 'PICT', and 'CNTL' items only; 
  429.     the other items have no underlying resources.
  430.  
  431. ΓÇó  Use Full Window    
  432.     Adjusts the window size so that all items in the item 
  433.     list are visible in the window.
  434.  
  435. 'FONT' RESOURCES
  436.  
  437. For 'FONT' resources, the editor window is divided into three panels: a character editing panel, a sample text panel, a character selection panel, and  a set of MacDraw-like graphics tools.
  438.  
  439. 'FONT' EDITOR WINDOW
  440.  
  441. The character editing panel on the left side of the window shows an enlargement of the selected character. You can edit it, as with FatBits in MacPaint, by clicking bits on and off.  Click and drag the black triangles at the bottom of the character editing panel to set the left and right bounds (that is, the character width). The three triangles at the left of the panel control the ascent, baseline, and descent.
  442.  
  443. The sample text panel, at the upper right, displays a sample of text in the font currently being edited. (You can change this text by clicking in the text panel and using normal Macintosh editing techniques.)
  444.  
  445. The character selection panel is below the text panel. You can select a character to edit by typing it (using the Shift and Option keys if necessary), or by clicking on it in the row of three characters shown. (Click on the right character in the row to move upward through the ASCII range; click on the left character to move downward.)  The character you select is boxed in the center of the row with its ASCII value shown below it (in decimal).
  446.  
  447. The graphic tools panel, directly below the character selection panel, offers a dozen or more of the familiar MacDraw-type tools including the hand mover, pencil, eraser, circles and rectangles.  In addition, a selection of colors is available.
  448.  
  449. CAUTION
  450.  
  451. Changing the ascent or descent of a character changes the ascent or descent for the entire font.
  452.  
  453. Any changes you make in the character editing panel are reflected in the text panel and the character selection panel. Remember that you cannot save the changes until you close the file.
  454.  
  455. You can also change the name of a font. The font name is stored as the name of the resource of that font family with size 0. This resource does not show up in the normal display of all fonts in a file. To display it, hold down the Option key while you open the 'FONT ' type from the file window. You will see a generic list of fonts. Select the font with the name you wish to change, and choose Get Info.
  456.  
  457.  ΓÇó USING RESEDIT TO MAKE SHOWDIALOG DIALOGS ΓÇó
  458.      ΓÇó Click┬áhere┬áto┬áprint┬áthese┬áinstructions ΓÇó
  459.  
  460. The following is a step-by-step guide for the first-time ResEdit user for making a simple ShowDialog DLOG/DITL template.
  461.  
  462. Remember, use ResEdit on a copy of a file only!!!
  463.  
  464. 1.  Launch ResEdit.  You'll see one small window for each mounted disk.  The files/folders will be listed in the windows.  Double-click on a line to open a file.  If the line is a folder, double-clicking on it will open a new window with its contents listed.
  465.  
  466. 2.  If the file has no resources, opening the file with ResEdit will create a resource fork.  If the file already has resources, when you open the file, you'll see listed the TYPES of resources in the file.
  467.  
  468. 3.  If you DO NOT see "DLOG" listed, it means your file   currently has no DLOG resources in it.  Choose "New" from the File menu.  You'll see a dialog with a scrolling list of all the TYPES of resources that ResEdit can make.  Scroll until you see "DLOG" (or enter DLOG into the edit box).  Click OK.  This will open a new, empty window.
  469.  
  470. 4.  Again, select "New" from the File menu.  This time, ResEdit will create a new DLOG resource for you.  It will randomly assign a resource ID to it (ResEdit will NEVER duplicate ID numbers for any given resource type).  You'll be looking at the DLOG editor, which presents a tiny picture of the new dialog on a tiny Mac screen.  You can move the dialog around, and resize it 
  471. (├á la MacDraw) by dragging it.
  472.  
  473. 5.  You'll see one new menu:  "DLOG."  It has only one menu item:  "Display as text."  Select this item.  The tiny picture of the dialog will be replaced by a window that contains information about the ATTRIBUTES of the dialog.  In this window, you can type in exact dimensions for the dialog.  BE SURE to UNCHECK the 
  474. "visible" and "goAwayflag" boxes.  THIS IS VERY INPORTANT!  The ONLY other thing you need to worry about is the procID box.  The procID describes how the dialog "looks."  The procID for a "standard" dialog box is 1.  ResEdit assigns a default procID of 0, so you'll have to change it.  When you're done, select the one menu item (now called "Display Graphically") from the "DLOG" menu.  You'll be returned to the tiny picture of the dialog.
  475.  
  476. 6.  The DLOG resource ONLY describes the size and border of the dialog.  It says NOTHING about its contents.  Double-click on the tiny picture of the dialog.  This will create a DITL resource AND LINK it to the DLOG resource.
  477.  
  478. 7.  You'll now be looking at the DITL editor.  This window will initially be empty.  There will be a grow box in the lower, right corner.  Resizing the window with the grow box DOES NOT resize the dialog.  YOU HAVE TO DO THIS IN THE DLOG RESOURCE.  Select 
  479. "New" from the "File" menu.  This will create a new DITL item#.  It will be item #1.  You will see a dialog box describing the attributes of the new DITL item.  From within this dialog you can set the "rect" of the item, and its type, and whether it is ENABLED or DISABLED.  A good rule of thumb is that items that the user will INTERACT with should be ENABLED.  Otherwise they should be made DISABLED.
  480.  
  481. 8.  If you make your DITL item a Button, Check Box, or Radio Button, type the name of the button into the edit box.  If your item is Static Text, type the contents of the text into the edit box.  If your item is an icon, type the ICON resource ID into the edit box.  The same goes for a PICT.  When you're done, click the goAway box.
  482.  
  483. 9.  You'll see your new item in the DITL window.  You can move it around and resize it ├á la MacDraw.  If your item is an icon or a PICT you'll notice that it probably looks pretty strange.  In that case, from the "DITL" menu, select "Use RSRC Rectangle."  The will cause the new item to assume the dimensions of the icon or PICT.  If the item is NOT an icon or PICT, double-clicking on it will reopen its attributes box.  If it IS an icon or PICT, you'll have to hold down the command-option keys when double-clicking on it.  If you don't do this, then, in the case of an icon, you'll open the ICON editor for that particulat ICON resource.  This is a FatBits type editor.  In the case of a PICT, you'll see the PICT resource described in Hex.  (You can't do anything with it.)  You create PICT resources by closing down all the opened DLOG and DITL windows and selecting 
  484. "New" from the "File" menu.  You'll see the resource type dialog again.  Scroll until you see "PICT" (or type "PICT" into the box).  You'll see a new, empty window.  Paste in your graphic from the clipboard or scrapbook.
  485.  
  486. 10.  Add your DITL items one after the other to build your template.  Each new DITL item is numbered one higher than the previous.  If you "Cut" a lower numbered DITL item, all the higher numbered ones are decremented by one.  Checking the "DITL" menu item "Align to Grid," will make aligning your DITL items easier.
  487.  
  488. 11.  When your template is finished, the last thing you need to do is make all resources purgeable.  This means that the memory that they consume can be reclaimed by the Memory Manager, if required.  Close down all open resource windows (but don't close the file, itself).  Select the line in the DLOG window that corresponds to the new DLOG (it will say something like "DLOG ID = xxx."  From the "File" menu, select 
  489. "Get Info."  You'll see a new window.  Check the box marked "Purgeable."  Leave all other boxes unchecked.  If you want, you can name the resource here.  You can renumber it too.  Do this for ALL resources that you have made (DLOG, DITL, PICT, ICON, etc.).
  490.  
  491. 12.  One trick about renumbering DITL resources:  The DITL is linked to a particular DLOG in the DLOG's attributes window (the one you got by selecting 
  492. "Display as text."  If you change the ID number of a DITL resource "after the fact," you'll have to go into the DLOG attributes window to enter in the new number (Otherwise your new dialog will appear to be 
  493. "empty," because the DLOG and DITL have become 
  494. "unlinked.").  It's good form to have a linked DLOG and DITL share the same resource number.  (Remember, ID's are not duplicated WITHIN a resource type; but different resource TYPES can have identical ID numbers.)
  495.  
  496. 13.  Close all windows and save.  You've just created your first dialog with ResEdit!
  497.  
  498.  
  499.  
  500. -- part contents for background part 18
  501. ----- text -----
  502. GETTING FAMILIAR WITH RESEDIT
  503.  
  504. It is a good idea to obtain the proper documentation and the latest version of ResEdit if you are going to be making your own resource items for use with ShowDialog.
  505.  
  506. SEE:  OBTAINING RESEDIT
  507.  
  508. WARNING!!
  509.  
  510. You can edit any file shown in the window, including the System file and ResEdit itself. However, itΓÇÖs dangerous to edit a file thatΓÇÖs currently in use. Edit a copy of the file instead. (For example, edit the System file on a non boot volume.)
  511.  
  512. CAUTION!
  513.  
  514. Individual editors may not be appropriate for all resource typesΓÇöinappropriate editors may cause system errors to occur.
  515.  
  516.  
  517.  
  518. -- part contents for background part 31
  519. ----- text -----
  520. Be sure to always use the most current version of ResEdit (1.2b3 as of March 1989).
  521.  
  522. ResEdit can be obtained from the major on-line services or from most user groups.
  523.  
  524. Sources for ResEdit:
  525. CompuServe: 
  526. AppDev Forum; Data Library 8 (From Apple [Mac]): RESED.APP
  527.  
  528. GEnie: 
  529. Macintosh Developers RT: file # 1200 
  530. (RESEDIT 1.2B2.SIT)
  531.  
  532. BMUG (formally the Berkeley Macintosh User's Group)
  533. 1442A Walnut St., #62
  534. Berkeley, CA  94709
  535. voice: 415-549-2684
  536. BBS: 415-849-2684
  537. Helpline: 415-849-4357
  538.  
  539.  
  540.  
  541. -- part contents for background part 30
  542. ----- text -----
  543. 11